package jay.home.bet.web.struts;

import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import jay.home.bet.domain.User;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import jay.home.bet.web.struts.UserForm;

public class UserAction extends BaseAction
{

	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception
	{

		List<User> user = getaccountService().getAllUsers(1, 20);
		String username = request.getParameter("username");
		request.setAttribute("User", user);

		return mapping.findForward("SUCCESS");
	}
}
